package xuesm.proxy.dbroute;

/**
 * @Author: xuesm
 * @Description:
 * @Date: Create in 12:54 2019/4/2
 */
public class OrderSerivceImpl implements IOrderService {


	private IOrderDao orderDao;

	public OrderSerivceImpl(){
		// 实际开发中， 是通过spring注入的
		this.orderDao = new OrderDaoImpl();
	}

	@Override
	public int insert(Order order) {
		orderDao.insert(order);
		System.out.println("OrderServiceImpl 调用 OrderDaoImpl 插入订单数据");
		return 1;
	}
}
